import { Action, Dispatch } from "redux";
export interface RootState {
  [key: string]: any;
}

export interface RootProps {
  initialState: { [key: string]: any };
  metaName: string;
  metaId: string;
  dispatch: Dispatch<CommonActionType>
}

export type anyObject = {
  [prop: string]: any;
};

export type ActionWho = {
  name: string;
  uuid: string;
}
export type ActionWhich = {
  field: string;
}

export interface BreezeAction extends Action {
  who: ActionWho;
  which: ActionWhich;
  payload: any;
  "@@BRZ/UI_TRIGGER"?: boolean;
}

export type CommonActionType = BreezeAction & Action;
